package AOP;

/**
 * User: cool
 * Date: 2019/8/10
 * Time: 17:15
 * 静态代理类
 */
public class UserDaoProxy implements UserDao {
    private UserDao userDao;

    public UserDaoProxy(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void saveUser() {
        System.out.println("加日志、开户事务 begin");
        userDao.saveUser();
        System.out.println("加日志、开户事务 end");
    }
}
